package com.jltx.xq.relaxnewspro.fragment;

import android.support.v7.widget.RecyclerView;

import com.jltx.xq.relaxnewspro.adapter.DailyAdapter;
import com.jltx.xq.relaxnewspro.database.cache.DailyCache;


public class DailyFragment extends BaseListFragment {

    protected boolean setHeaderTab(){return false;}

    protected void onCreateCache(){
       cache = new DailyCache(handler);
    }

    @Override
    protected boolean hasData() {
        return cache.hasData();
    }

    protected void loadFromCache(){
        cache.loadFromCache();
    }

    protected RecyclerView.Adapter bindAdapter() {
        return new DailyAdapter(getContext(),cache);
    }

    protected void loadFromNet() {
        cache.load();
    }

    @Override
    protected void getArgs() {

    }

}
